//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet.Formats.Biff
{
    class LocationContext
    {
        private readonly Cell _cell;
        private readonly Worksheet _worksheet;
        private readonly Workbook _workbook;

        public LocationContext(Workbook workbook)
        {
            _workbook = workbook;
        }

        public LocationContext(Worksheet worksheet)
        {
            _worksheet = worksheet;
        }

        public LocationContext(Cell cell)
        {
            _cell = cell;
        }

        public Cell Cell
        {
            get { return _cell; }
        }

        public Worksheet Worksheet
        {
            get { return _worksheet; }
        }

        public Workbook Workbook
        {
            get { return _workbook; }
        }
    }
}